//
//  GetMoneyTopHaveCarCell.swift
//  XiaoJingMallSwift
//

//  Created by beisheng03 on 2017/9/7.
//  Copyright © 2017年 beisheng. All rights reserved.
//

import UIKit

class GetMoneyTopHaveCarCell: BaseTableViewCell {

    @IBOutlet weak var leftImageView: UIImageView!
    
    @IBOutlet weak var inditorView: UIActivityIndicatorView!
    
    @IBOutlet weak var bottomLabel: UILabel!
    @IBOutlet weak var topLabel: UILabel!
    
    var model : BankCardInfoModel?{
        
        
        didSet{
            
            if model == nil{
                
                
                return
            }
            
            
            
            inditorView.startAnimating()
            
            leftImageView.sd_setImage(with: URL(string :model!.bank_image ), placeholderImage: UIImage.defaulLogoImage(), options: []) { (image, _, _, _) in
                self.inditorView.stopAnimating()
                
                
            }
            
            
            topLabel.text = model?.bank_name
            
            bottomLabel.text = "尾号\(model!.card_no)储蓄卡"
        
        
        }
    
    }

    
    override func awakeFromNib() {
        super.awakeFromNib()
        contentView.backgroundColor = UIColor.white
        bottomLabel.textColor = UIColor.dakGray()
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
